package com.brainshare.an.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.brainshare.common.annotation.Excel;
import com.brainshare.common.core.domain.BaseEntity;

/**
 * 登录日志对象 login_log
 * 
 * @author ruoyi
 * @date 2023-02-20
 */
public class LoginLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**
     * 登录日志主键
     */
    private Long id;

    /**
     * 来源ip地址
     */
    @Excel(name = "来源ip地址")
    private String ipAdress;

    /**
     * ip地址描述
     */
    private String ipContent;

    private Long wechatUserId;

    private String userName;

    private String token;

    public String getToken()
    {
        return token;
    }

    public void setToken(String token)
    {
        this.token = token;
    }

    public Long getWechatUserId()
    {
        return wechatUserId;
    }

    public void setWechatUserId(Long wechatUserId)
    {
        this.wechatUserId = wechatUserId;
    }

    public String getUserName()
    {
        return userName;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getIpContent()
    {
        return ipContent;
    }

    public void setIpContent(String ipContent)
    {
        this.ipContent = ipContent;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setIpAdress(String ipAdress)
    {
        this.ipAdress = ipAdress;
    }

    public String getIpAdress()
    {
        return ipAdress;
    }

    @Override
    public String toString()
    {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("ipAdress", getIpAdress())
                .append("ipContent", getIpContent())
                .append("createTime", getCreateTime())
                .toString();
    }
}
